<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Payment</title>
</head>
<?php 
if (isset($error))  
{
    $query=$this->db->query("select id_mg from manager");
    $data['query']=$query->result();
    $data['error_mg']=$error;
    $this->load->view('payment/change_payment_id_v',$data,'refresh');
}
else{?>
<center>
    契約書
    <table border=1>
        <tr>
            <td>ID_manager</td>
            <td><?php echo $id_mg ?></td>
        </tr>
        <tr>
            <td>アドレス</td>
            <td><?php echo $address ?></td>
        </tr>
        <tr>
            <td>電話番号</td>
            <td><?php echo $phone ?></td>
        </tr>
        <tr>
            <td>初めに</td>
            <td><?php echo $time_start;?></td>
        </tr>
        <tr>
            <td>締め切り</td>
            <td><?php echo $time_end; ?></td>
        </tr>
        <tr>
            <td>サブミットの代金</td>
            <td><?php echo $question_money." VND"?></td>
            <td><?php echo anchor('admin/tochange_payment', 'Change'); ?></td>
        </tr>
        <tr>
            <td>サブミットしたテスト</td>
            <td><?php echo $count_submit?></td>
        </tr>
        <tr>
            <td>合計代金</td>
            <td><?php echo $total_money." VND"?></td>
        </tr>
    </table>
</center>
<?php }?>
</body>
</html>